package com.scau.model;

import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;

@Entity(name="v_emp_pro")
public class VEmpPro {
	private long id;
	private String userid;
	private String username;
	private String productCode;
	private String productname;
	private Date createDate;
	private double pieceRate;
	private int num;
	private double earning;
	@Column(name="create_date")
	public Date getCreateDate() {
		return createDate;
	}
	public double getEarning() {
		return earning;
	}

	@Id
	@GeneratedValue
	public long getId() {
		return id;
	}
	public int getNum() {
		return num;
	}
	@Column(name="piece_rate")
	public double getPieceRate() {
		return pieceRate;
	}
	@Column(name="product_code")
	public String getProductCode() {
		return productCode;
	}
	
	public String getProductname() {
		return productname;
	}
	public String getUserid() {
		return userid;
	}
	
	public String getUsername() {
		return username;
	}
	public void setCreateDate(Date createDate) {
		this.createDate = createDate;
	}
	public void setEarning(double earning) {
		this.earning = earning;
	}
	public void setId(long id) {
		this.id = id;
	}
	public void setNum(int num) {
		this.num = num;
	}
	public void setPieceRate(double pieceRate) {
		this.pieceRate = pieceRate;
	}
	public void setProductCode(String productCode) {
		this.productCode = productCode;
	}
	public void setProductname(String productname) {
		this.productname = productname;
	}
	public void setUserid(String userid) {
		this.userid = userid;
	}
	public void setUsername(String usrname) {
		this.username = usrname;
	}
	
	


}
